package dongshi.daddy.singleton;

import dongshi.daddy.singleton.byenum.EnumCls;
import lombok.SneakyThrows;

import java.lang.reflect.Constructor;

public class TT {
    @SneakyThrows
    public static void main(String[] args) {
        Constructor<?> declaredConstructor = EnumCls.class.getDeclaredConstructors()[0];
        declaredConstructor.setAccessible(true);
        Object o = declaredConstructor.newInstance();
        System.out.println(o);
    }
}
